var i=0; 
              
function checkAll(swch){
	len=document.invitebuddies.elements.length;
	for (i=0;i<len;i++){
		if (document.invitebuddies.elements[i].type=='checkbox'){
			document.invitebuddies.elements[i].checked=true;
		};
	}; 
};

function uncheckAll(){
	len=document.invitebuddies.elements.length;
	for (i=0;i<len;i++){
		if (document.invitebuddies.elements[i].type=='checkbox'){
			document.invitebuddies.elements[i].checked=false;
		};
	}; 
};
